extends "../calxhx_1_2/calxhx_1_2.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "天焰菲尔"                  # 角色的名称
	attAdd.atkL += 0.3
	attAdd.suck += 0.2
	xb = "火"
	lv = 4
	addSkillTxt("[color=#FFFF00][精灵王之怒][/color]:[color=#FFCC22]精灵王的怒火，将目标亚比焚烧殆尽，造成260%的火系物理伤害并令自身和目标亚比停止行动2秒\n<灼烧>并<破甲>目标3秒[CD:19][/color]")
	addSkillTxt("[color=#FFFF00][精灵王之力][/color][color=#FFCC22]火焰的力量使菲尔的攻击力提升30%物理吸血提升20%[/color]")
	addCdSkill("zhinu",19)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "zhinu"&&aiCha !=null:
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("精灵王之怒！", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.atk*2.6,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		addBuff(bf.jiyun.new(4))
		aiCha.addBuff(bf.pojia.new(3))
		aiCha.addBuff(bf.zhuoshao.new(3))
		aiCha.addBuff(bf.jiyun.new(4))
